#include "server.hpp"

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cout << "usage: ./server port ip" << std::endl;
        exit(1);
    }
    std::unique_ptr<TCPServer> pSer(new TCPServer(atoi(argv[1]), argv[2]));
    pSer->Init();
    pSer->Start();

    return 0;
}